<script setup>
import {reactive,ref,onMounted} from 'vue'
import Loading from './components/BwyLoding/src/index.vue'
import { BwyButton,BwyDate,BwySelect,BwyTag,BwyDialog } from './index.js'

let flag = ref("2")
const isCheckout = ref(false)
const isSwitch = ref(false)
const today = ref('2024-11-11')

const dialogShow = ref(false)

// console.log(constsetCalendarData(new Date() , 1900 ,9999))

const submit = () => {
   let arr = ['2024-11-12','2024-10-12','2024-11-22']
  today.value = arr[Math.floor(Math.random() * arr.length)]
}

const handleChange = (e) => {
   console.log(e)
}

onMounted(() => {
  // message.info('111111111')
  // message.success('111111111')
  // message.error('111111111')
  // message.warning('111111111')
})
</script>

<template>
<!--  <bwy-dialog v-model="dialogShow">-->
<!--    <template #header>-->
<!--      111-->
<!--    </template>-->
<!--    <template #footer>-->
<!--      <bwy-button :isDot="true">取消</bwy-button>-->
<!--      <bwy-button>确认</bwy-button>-->
<!--    </template>-->
<!--  </bwy-dialog>-->
  <div style="display: flex;">
    <bwy-tag>文字</bwy-tag>
    <bwy-tag type="primary" effect="dark">文字</bwy-tag>
    <bwy-tag type="success" effect="plain">文字</bwy-tag>
    <bwy-tag type="warning">文字</bwy-tag>
    <bwy-tag type="danger">文字</bwy-tag>
  </div>
<!--  <div style="width: 240px;">-->
<!--    <bwy-select />-->
<!--  </div>-->
   <div style="width: 320px">
      <bwy-date v-model="today" :isMultiple="true"/>
   </div>
  <bwy-button @click="submit">111</bwy-button>
</template>

<style scoped>

</style>
